using System.Configuration;

namespace EPiSugar.Configuration
{
    public class TypeMappingElement : ConfigurationElement
    {
        [ConfigurationProperty("pageTypeID", IsKey = true)]
        public int PageTypeID
        {
            get { return (int)this["pageTypeID"]; }
            set { this["pageTypeID"] = value; }
        }

        [ConfigurationProperty("entityType", IsRequired = true)]
        public string EntityType
        {
            get { return (string)this["entityType"]; }
            set { this["entityType"] = value; }
        }

        [ConfigurationProperty("autoBind", DefaultValue = true)]
        public bool AutoBind
        {
            get { return (bool)this["autoBind"]; }
            set { this["autoBind"] = value; }
        }
    }
}